import request from '@/utils/request'

// 查询PLC接口参数列表
export function listWcsDvc(query) {
  return request({
    url: '/system/WcsDvc/list',
    method: 'get',
    params: query
  })
}

// 查询PLC接口参数详细
export function getWcsDvc(dvcId) {
  return request({
    url: '/system/WcsDvc/' + dvcId,
    method: 'get'
  })
}

// 新增PLC接口参数
export function addWcsDvc(data) {
  return request({
    url: '/system/WcsDvc',
    method: 'post',
    data: data
  })
}

// 修改PLC接口参数
export function updateWcsDvc(data) {
  return request({
    url: '/system/WcsDvc',
    method: 'put',
    data: data
  })
}

// 删除PLC接口参数
export function delWcsDvc(dvcId) {
  return request({
    url: '/system/WcsDvc/' + dvcId,
    method: 'delete'
  })
}

// 导出PLC接口参数
export function exportWcsDvc(query) {
  return request({
    url: '/system/WcsDvc/export',
    method: 'get',
    params: query
  })
}